<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @mixin \think\Model
 */
class SystemRole extends Model
{
    //
    use SoftDelete;

    protected $deleteTime = 'deleted_at';

    const ENABLE = 1;

    public function menus()
    {
        return $this->belongsToMany(SystemMenu::class, 'system_role_menu', 'menu_id', 'role_id');
    }
}
